			$(function(){
				//换页
				var index = 0;
				$('#click_changpage button').on('click',function(){
					var curentpage = $('#click_changpage .orangered').text();
					//console.log($(this).text())
					//console.log(curentpage);
					if (curentpage == $(this).text()) {
						return false;
					}else if ($(this).hasClass('chang_pregv')) {
						if (curentpage == 1) {
							return false;
						}
						index = --curentpage;
					//console.log('上一页'+index)
					}else if ($(this).hasClass('change_next')) {
						if (curentpage == $('#click_changpage button').length-2) {
							return false;
						}
						index = ++curentpage;
						console.log($(this).hasClass('change_next'))
					}else{
						index = $(this).text();
					}
					$('#click_changpage button').removeClass('orangered').eq(index).addClass('orangered');
					$("#collect_right_product ul").load("changepage_"+index+".html?_="+Math.random());
				});
				$('#jumppage_btn').on('click',function(){
					var $input = $('#jumppage').val();
					var $btnlength = $('#click_changpage button').length;
					if ($input) {
						if ($input>=1 && $input <= $btnlength-2) {
							index = $input;
							$('#click_changpage button').removeClass('orangered').eq(index).addClass('orangered');
							$("#collect_right_product ul").load("changepage_"+index+".html?_="+Math.random());
						}else{
							return false;
						}
					}else{
						return false;
					}
				});
			});